JAKARTA struts structure porting the PHP development framework, using object-oriented development architecture and APIs, simulates an HTTP servlet container and uses the PHP Service page engine technology.
Download Address:
There is a mechanism in JSP that allows you to insert a tag similar to HTML in the JSP page. This article introduces the basic concepts and components of JSP custom tag, and how to develop and apply JSP custom tag.
What is tagUsing the HTML language,
Js
SummaryThere is a mechanism in JSP that allows you to insert markup similar to HTML in a JSP page. This article describes the basic concepts and composition of JSP custom tags, and how to develop and apply JSP custom tags.
Key wordsJSP,XML,TLD,
Taglib Design
[Overview]Taglib is a relatively advanced JSP technology. As a JSP developer, it is acceptable not to understand taglib. Because the JSP style or Java style is concise and beautiful. If the technology is too complex or cumbersome, it
The Java Tag Library is divided into the above several, generally used is the core and functions, the next will explain the various, and common usage.The General tag library is used with the El expression, so the use of the El expression is also
Custom tags)
(Prepared study notes)
Step 1. Create a Tag handler class (Tag Processor class)
Package javax. servlet. jsp. tagext
Develop a label processor class for an empty Body -----> 1) implements Tag 2) extends TagSupport
The method of
7. Specify the welcome page
What happens if a user provides a URL containing a directory name but not a file name like http: // host/webappprefix/directoryname? Can the user get a directory table? An error? Or standard file content? If the content
1. To develop a custom behavior, you need to use a series of classes and interfaces, which are called the tag extension mechanism in JSP1.1 specifications ). All interfaces and classes required to implement the tag Handler are defined in the javax.
1. To develop a custom behavior, you need to use a series of classes and interfaces called tag extension mechanisms in JSP1.1 specifications ). All interfaces and classes required to implement the tag Handler are defined in the javax. servlet. jsp.
1. Several important components of custom tags:Inherited class: javax. servlet. jsp. tagext. *: tagsupportOne attribute: protected pagecontextTwo Methods: Public int dostarttag ()Public int doendtag ()Three constants: skip_body, skip_page, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.